package com.demos.springcloud.consumer03HystrixFallback.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

@Service
@FeignClient(name = "gatewayRoute")
public interface ExceptionProviderService {

    @PostMapping("exp/post/{id}")
    Map<String, Object> expPost(@PathVariable(name = "id") String id);

    @GetMapping("exp/timeout")
    String expGetTO();
}
